package bfgca;

public class Planet {
  
  static enum planetType{
    //Type (Resource Production, Resource Storage)
    AsteroidBelt  (15, 60), 
    Uninhabited   (10, 0), 
    PenalColony   (10, 20), 
    Agri          (15, 90), 
    Mining        (20, 120), 
    Civilized     (25, 100), 
    Hive          (30, 120), 
    Forge         (35, 280), 
    Home          (30, 240), 
    Pirate        (30, 240);
    
    private final int resourceProduction;
    private final int resourceStorage;
    
    planetType(int prod, int storage){
      this.resourceProduction = prod;
      this.resourceStorage = storage;
    }
    
    int resProd() {return resourceProduction;}
    int resStor() {return resourceStorage;}    
  }
  
  private planetType type;
  private String name;
  
  public Planet(String name, Planet.planetType t){
    this.name = name;
    this.type = t;
  }
  
  public String toString(){ return this.name; }
  public String getName(){ return this.name; }
  public String getType(){ return this.type.toString();}
  public int getResourceProduction(){return this.type.resProd();}
  public int getResourceStorage(){return this.type.resStor();}
  
}
